﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DefectDBTypes;


namespace Graph
{
    /// <summary>
    /// Interaction logic for SoftwareGraph.xaml
    /// </summary>
    public partial class Company : Window
    {
        private MonitoredCompany mw_com;

        public event PropertyChangedEventHandler PropertyChanged;

        private void FirePropertyChangedEvent(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

        public MonitoredCompany Companies 
        {
            get
            {
                return mw_com;
            }
            set
            {
                mw_com = value;
                FirePropertyChangedEvent("Software");
            }
        }

        public Company()
        {
            InitializeComponent();
            DataContext = this;
        }


        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            Company c;
            MonitoredCompany mc = new MonitoredCompany();

            c = new Company();
            c.Name = "DL1";

            c = new Company();
            c.Name = "DL2";
        }
    }
}
